package cn.csc.module.product.convert.categorybrand;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.product.controller.admin.categorybrand.vo.*;
import cn.csc.module.product.dal.dataobject.categorybrand.CategoryBrandDO;

/**
 * 品牌分类关联信息 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface CategoryBrandConvert {

    CategoryBrandConvert INSTANCE = Mappers.getMapper(CategoryBrandConvert.class);

    CategoryBrandDO convert(CategoryBrandCreateReqVO bean);

    CategoryBrandDO convert(CategoryBrandUpdateReqVO bean);

    CategoryBrandRespVO convert(CategoryBrandDO bean);

    List<CategoryBrandRespVO> convertList(List<CategoryBrandDO> list);

    PageResult<CategoryBrandRespVO> convertPage(PageResult<CategoryBrandDO> page);

    List<CategoryBrandExcelVO> convertList02(List<CategoryBrandDO> list);

}
